﻿using FDStudio.Core.Common.Constants;
using System;
using System.Collections.Generic;
using System.Text;

namespace FDStudio.Core.Entities
{
    /*
     CreatedOn: 2018-01-25
     CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// api请求结果
    /// </summary>
    public class ApiResult<T> : IApiResult<T>
    {
        public string Message { get; set; }

        public int Code { get; set; }

        public bool Success => Code == ResultCode.Success;

        public T Result { get; set; }
    }
}
